package com.stu.spring.context.chapter12.javarmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class JavaHelloRMIServiceImpl extends UnicastRemoteObject implements JavaHelloRMIService {
    protected JavaHelloRMIServiceImpl() throws RemoteException {
    }

    @Override
    public int getAdd(int a, int b) throws RemoteException {
        return a + b;
    }
}
